package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 所有用户列表
 *
 * @author : 洪俊新
 * @date : 2021/8/18 16:21
 * @description:
 */
public class PhpUserRes {
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer id;
    /**
     * 账号
     * isnull 0
     */            private String account;
    /**
     * 用户昵称
     * isnull 0
     */            private String nickname;

    /**
     * 用户头像
     * isnull 0
     */            private String avatar;
    /**
     * 手机号码
     * isnull 0
     */            private String mobile;
    /**
     * 性别:0-未知；1-男；2-女
     * isnull 0
     */            private Integer sex;
    /**
     * 第一个上级
     * isnull 0
     */            private Integer firstLeader;
    /**
     * 账号
     * isnull 0
     */            private String firstAccount;
    /**
     * 第二个上级
     * isnull 0
     */            private Integer secondLeader;
    /**
     * 分销码
     * isnull 0
     */            private String distributionCode;
    /**
     * 是否禁用：0-否；1-是；
     * isnull 0
     */            private Integer disable;

    /**
     * 直接下级人数
     */
    private Integer directSubordinateCount;
    /**
     * 间接下级人数
     */
    private Integer indirectSubordinateCount;
    /**
     * 佣金收益
     * isnull 0
     */            private BigDecimal earnings;
    /**
     * 注册时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    public String getFirstAccount() {
        return firstAccount;
    }

    public void setFirstAccount(String firstAccount) {
        this.firstAccount = firstAccount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getEarnings() {
        return earnings;
    }

    public void setEarnings(BigDecimal earnings) {
        this.earnings = earnings;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getFirstLeader() {
        return firstLeader;
    }

    public void setFirstLeader(Integer firstLeader) {
        this.firstLeader = firstLeader;
    }

    public Integer getSecondLeader() {
        return secondLeader;
    }

    public void setSecondLeader(Integer secondLeader) {
        this.secondLeader = secondLeader;
    }

    public String getDistributionCode() {
        return distributionCode;
    }

    public void setDistributionCode(String distributionCode) {
        this.distributionCode = distributionCode;
    }

    public Integer getDisable() {
        return disable;
    }

    public void setDisable(Integer disable) {
        this.disable = disable;
    }

    public Integer getDirectSubordinateCount() {
        return directSubordinateCount;
    }

    public void setDirectSubordinateCount(Integer directSubordinateCount) {
        this.directSubordinateCount = directSubordinateCount;
    }

    public Integer getIndirectSubordinateCount() {
        return indirectSubordinateCount;
    }

    public void setIndirectSubordinateCount(Integer indirectSubordinateCount) {
        this.indirectSubordinateCount = indirectSubordinateCount;
    }
}
